﻿<UserControl x:Class="EventWindowHandler.Plugin.ObjectEventInfoView"
             xmlns:y="clr-namespace:EventWindowHandler.Plugin"  
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <Grid HorizontalAlignment="Stretch" Width="Auto">
        <Grid.RowDefinitions>
            <RowDefinition Height="20"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Text="Object Event Info"/>        
        <ListView Grid.Row="1" Name="lstItems" ItemsSource="{Binding}" SelectionMode="Extended" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" 
                 Width="Auto" Height="Auto" BorderThickness="1"
                 ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <Border HorizontalAlignment="Stretch" Width="Auto" Margin="0,0,0,0" Padding="1,1,1,1" BorderBrush="Black" BorderThickness="0" Height="Auto"
                            VerticalAlignment="Top">
                        <y:EventCallInfoView x:Name="eventCallInfo" HorizontalAlignment="Stretch" EventCallInfoViewModel="{Binding}" Height="Auto"/>
                    </Border>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </Grid>
</UserControl>
